package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;

import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaPrincipal extends javax.swing.JFrame {
	private JMenuBar menuPrincipal;
	private JMenuItem menuProducto;
	private JLabel lblGNOR;
	private JMenuItem menuListadoVenta;
	private JMenuItem menuListadoIngrediente;
	private JMenuItem menuSalir;
	private JLabel lblPresentacion;
	private JPanel panPresentacion;
	private JMenu menuReportes;
	private JMenu menuASalir;
	private JMenuItem menuInsumos;
	private JMenu menuCargar;
	private JMenuItem menuCategoria;
	private JMenuItem menuOrden;
	private JMenu menuRegistrar;

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public VentanaPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			setTitle("GNOR'S FAST FOOD");
			{
				panPresentacion = new JPanel();
				getContentPane().add(panPresentacion, BorderLayout.CENTER);
				panPresentacion.setLayout(null);
				panPresentacion.setBackground(new java.awt.Color(255,255,255));
				panPresentacion.setPreferredSize(new java.awt.Dimension(554, 403));
				{
					lblPresentacion = new JLabel();
					panPresentacion.add(lblPresentacion);
					lblPresentacion.setIcon(new ImageIcon(getClass().getClassLoader().getResource("iconos/fastfood.gif")));
					lblPresentacion.setBounds(98, 2, 333, 360);
				}
				{
					lblGNOR = new JLabel();
					panPresentacion.add(lblGNOR);
					lblGNOR.setText("GNOR'S LO MEJOR EN COMIDA RAPIDA");
					lblGNOR.setBounds(69, 384, 428, 25);
					lblGNOR.setFont(new java.awt.Font("Bradley Hand ITC",1,20));
					lblGNOR.setForeground(new java.awt.Color(18,6,249));
				}
			}
			{
				menuPrincipal = new JMenuBar();
				setJMenuBar(menuPrincipal);
				{
					menuRegistrar = new JMenu();
					menuPrincipal.add(menuRegistrar);
					menuRegistrar.setText("Registrar");
					{
						menuOrden = new JMenuItem();
						menuRegistrar.add(menuOrden);
						menuOrden.setText("Orden");
					}
					{
						menuProducto = new JMenuItem();
						menuRegistrar.add(menuProducto);
						menuProducto.setText("Producto");
					}
					{
						menuCategoria = new JMenuItem();
						menuRegistrar.add(menuCategoria);
						menuCategoria.setText("Categoria");
					}
				}
				{
					menuCargar = new JMenu();
					menuPrincipal.add(menuCargar);
					menuCargar.setText("Cargar");
					{
						menuInsumos = new JMenuItem();
						menuCargar.add(menuInsumos);
						menuInsumos.setText("Insumos");
					}
				}
				{
					menuReportes = new JMenu();
					menuPrincipal.add(menuReportes);
					menuReportes.setText("Reportes");
					{
						menuListadoIngrediente = new JMenuItem();
						menuReportes.add(menuListadoIngrediente);
						menuListadoIngrediente.setText("Listado de Ingrediente");
					}
					{
						menuListadoVenta = new JMenuItem();
						menuReportes.add(menuListadoVenta);
						menuListadoVenta.setText("Listado de Ventas");
					}
				}
				{
					menuASalir = new JMenu();
					menuPrincipal.add(menuASalir);
					menuASalir.setText("Salir");
					{
						menuSalir = new JMenuItem();
						menuASalir.add(menuSalir);
						menuSalir.setText("Salir");
					}
				}
			}
			pack();
			this.setSize(568, 489);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public void addListener(ActionListener actionListener) {
		this.menuOrden.addActionListener(actionListener);
		this.menuProducto.addActionListener(actionListener);
		this.menuCategoria.addActionListener(actionListener);
		this.menuInsumos.addActionListener(actionListener);
		this.menuListadoIngrediente.addActionListener(actionListener);
		this.menuListadoVenta.addActionListener(actionListener);
		this.menuSalir.addActionListener(actionListener);
	}

}
